﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ERP_RORZE.Product.WTS;

namespace ERP_RORZE.Product.Forms
{
    public partial class Frm_WTS : DevExpress.XtraEditors.XtraForm
    {
        ctrlDataTranfer ctrlDatatranfer = new ctrlDataTranfer();
        ctrlJigReport ctrlJigreport = new ctrlJigReport();
        ctrlLaborWTSDetail ctrlLaborWTSdetail = new ctrlLaborWTSDetail();
        ctrlLaborWTSFind ctrlLaborWTSfine = new ctrlLaborWTSFind();
        ctrlLaborWTSInput ctrlLaborWTSinput = new ctrlLaborWTSInput();
        ctrlLaborWTStoGA ctrlLaborWTStoga = new ctrlLaborWTStoGA();
        ctrlMachineDailyCheck ctrlMachinedailycheck = new ctrlMachineDailyCheck();
        ctrlMachineDailyReport ctrlMachinedailyreport = new ctrlMachineDailyReport();
        ctrlMachineWTSDetail ctrlMachineWTSdetail = new ctrlMachineWTSDetail();
        ctrlMachineWTSFind ctrlMachineWTSfind = new ctrlMachineWTSFind();
        ctrlMachineWTSInput ctrlMachineWTSinput = new ctrlMachineWTSInput();
        ctrlMachineWTStoGA ctrlMachineWTStoga = new ctrlMachineWTStoGA();
        ctrlOverTime ctrlOvertime = new ctrlOverTime();
        ctrlStaffDailyWorkingTime ctrlStaffDailyworkingtime = new ctrlStaffDailyWorkingTime();
        ctrlStaffWorkingTimeCheck ctrlStaffWorkingTimecheck = new ctrlStaffWorkingTimeCheck();
        public Frm_WTS()
        {
            InitializeComponent();
        }

        private void navItemMachineWTSDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcWTS.Panel2.Controls.Clear();
            spcWTS.Panel2.Controls.Add(ctrlMachineWTSdetail);
            ctrlMachineWTSdetail.Dock = DockStyle.Fill;
        }

        private void navItemMachineWTSInput_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcWTS.Panel2.Controls.Clear();
            spcWTS.Panel2.Controls.Add(ctrlMachineWTSinput);
            ctrlMachineWTSinput.Dock = DockStyle.Fill;
        }

        private void navItemMachineDailyReport_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcWTS.Panel2.Controls.Clear();
            spcWTS.Panel2.Controls.Add(ctrlMachinedailyreport);
            ctrlMachinedailyreport.Dock = DockStyle.Fill;
        }

        private void navItemMachineDailyCheck_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcWTS.Panel2.Controls.Clear();
            spcWTS.Panel2.Controls.Add(ctrlMachinedailycheck);
            ctrlMachinedailycheck.Dock = DockStyle.Fill;
        }

        private void navItemMachineWTSFind_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcWTS.Panel2.Controls.Clear();
            spcWTS.Panel2.Controls.Add(ctrlMachineWTSfind);
            ctrlMachineWTSfind.Dock = DockStyle.Fill;
        }

        private void navItemWTSToGA_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcWTS.Panel2.Controls.Clear();
            spcWTS.Panel2.Controls.Add(ctrlMachineWTStoga);
            ctrlMachineWTStoga.Dock = DockStyle.Fill;
        }

        private void navItemJigReport_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcWTS.Panel2.Controls.Clear();
            spcWTS.Panel2.Controls.Add(ctrlJigreport);
            ctrlJigreport.Dock = DockStyle.Fill;
        }

        private void navItemLaborWTSDetail_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcWTS.Panel2.Controls.Clear();
            spcWTS.Panel2.Controls.Add(ctrlLaborWTSdetail);
            ctrlLaborWTSdetail.Dock = DockStyle.Fill;
        }

        private void navItemLaborWTSInput_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcWTS.Panel2.Controls.Clear();
            spcWTS.Panel2.Controls.Add(ctrlLaborWTSinput);
            ctrlLaborWTSinput.Dock = DockStyle.Fill;
        }

        private void navItemStaffDailyWT_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcWTS.Panel2.Controls.Clear();
            spcWTS.Panel2.Controls.Add(ctrlStaffDailyworkingtime);
            ctrlStaffDailyworkingtime.Dock = DockStyle.Fill;
        }

        private void navItemStaffWTCheck_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcWTS.Panel2.Controls.Clear();
            spcWTS.Panel2.Controls.Add(ctrlStaffWorkingTimecheck);
            ctrlStaffWorkingTimecheck.Dock = DockStyle.Fill;
        }

        private void navItemLaborWTSFind_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcWTS.Panel2.Controls.Clear();
            spcWTS.Panel2.Controls.Add(ctrlLaborWTSfine);
            ctrlLaborWTSfine.Dock = DockStyle.Fill;
        }

        private void navLaborWTSToGA_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcWTS.Panel2.Controls.Clear();
            spcWTS.Panel2.Controls.Add(ctrlLaborWTStoga);
            ctrlLaborWTStoga.Dock = DockStyle.Fill;
        }

        private void navItemOverTime_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcWTS.Panel2.Controls.Clear();
            spcWTS.Panel2.Controls.Add(ctrlOvertime);
            ctrlOvertime.Dock = DockStyle.Fill;
        }

        private void navItemDataTranfer_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            spcWTS.Panel2.Controls.Clear();
            spcWTS.Panel2.Controls.Add(ctrlDatatranfer);
            ctrlDatatranfer.Dock = DockStyle.Fill;
        }


    }
}